{% extends "base/content.html" %}
{% load crispy_forms_tags %}
{% block title %}
  {% blocktrans with instance_name=form.instance.name%}
    Edit Category {{ instance_name }}
  {% endblocktrans %}
{% endblock %}
{% block content %}
  <div class="">
    <h5 class="">
      {% blocktrans with instance_name=form.instance.name%}
      Edit Category {{ instance_name }} .{% endblocktrans %}
    </h5>
  </div>
  <form method="post"
        action="{% url 'canteen:update_category' form.instance.id %}">
    {% csrf_token %} {{ form|crispy }}
    <div class="py-3 fixed-bottom text-end bg-dark">
      <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
      <button type="button" class="btn btn-danger" onclick="window.close();">
        {% trans "Cancel" %}
      </button>
    </div>
  </form>
{% endblock %}
